package com.obas.menus {
	import com.ease.core.components.menus.AbstractMenuProvider;
	import com.obas.constants.StringConstants;
	import com.obas.utils.ResourceUtil;

	import mx.events.MenuEvent;

	public class SearchMenuProvider extends AbstractMenuProvider {
		override public function appendMenuItem(root:Object):void {

			var menuItems:Object={label: ResourceUtil.getString(StringConstants.MAIN_MENU_SEARCH), //
					children: [ //
					{label: "Search", icon: "documentIconClass", listener: onMenuItemClick}, //
						{label: "File", icon: "documentIconClass", listener: onMenuItemClick}, //
						{label: "Remote", icon: "documentIconClass", listener: onMenuItemClick}, //
						{type: "separator"}, //
						{label: "Declarations", //
							children: [ //
							{label: "File", listener: onMenuItemClick}, //
								{label: "Project", listener: onMenuItemClick}, //
								{label: "Workspace", listener: onMenuItemClick} //
							] //
						}, //
						{label: "References", //
							children: [ //
							{label: "File", listener: onMenuItemClick}, //
								{label: "Project", listener: onMenuItemClick}, //
								{label: "Workspace", listener: onMenuItemClick} //
							] //
						}, //
						{label: "Text", //
							children: [ //
							{label: "Workspace", listener: onMenuItemClick}, //
								{label: "Project", listener: onMenuItemClick}, //
								{label: "File", listener: onMenuItemClick}, //
								{label: "Working Set...", listener: onMenuItemClick} //
							] //
						} //
					] //
				};

			root.children.push(menuItems);
		}
	}
}
